﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Viatura.aspx.cs" Inherits="Viatura" Title=".:: SIGOT - Viatura" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Panel ID="Panel5" runat="server" 
        style="z-index: 1; left: 0px; top: 0px; position: absolute; height: 19px; width: 955px">
        <asp:Label ID="Label2" runat="server" Text="Cadastro:" Font-Bold="True" 
            Font-Names="Trebuchet MS" Font-Size="10pt" ForeColor="#000099"></asp:Label>
    </asp:Panel>
    <p>
        <br />
    <asp:Button ID="Button2" runat="server" Font-Names="Trebuchet MS" 
                style="z-index: 1; left: 170px; top: 172px; position: fixed; height: 27px; width: 133px; " 
                Text="   Nova Viatura" Font-Size="9pt" onclick="Button2_Click" />
            <asp:Image ID="Image13" runat="server" 
                ImageUrl="~/imagens/fatia/formulario/adicionar.png" 
                
                
            style="z-index: 1; left: 30px; top: 24px; position: absolute; height: 22px; width: 24px; right: 901px;" />
    </p>
    <p>
        &nbsp;</p>
    <p>
    <asp:Button ID="Button1" runat="server" Font-Names="Trebuchet MS" 
                style="z-index: 1; left: 340px; top: 83px; position: absolute; height: 27px; width: 133px" 
                Text="    Pesquisar Viatura" Font-Size="9pt" 
        onclick="Button1_Click" />
    </p>
    <p>
    <asp:Image ID="Image14" runat="server" 
        ImageUrl="~/imagens/fatia/formulario/pesquisar.png" 
        
        
        
        
            style="z-index: 1; left: 343px; top: 83px; position: absolute; height: 22px; width: 24px" />
    </p>
    <p>
        &nbsp;</p>
    <p>
            <asp:Panel ID="Panel8" runat="server" 
                
                
                
        style="z-index: 1; left: 63px; top: 155px; position: absolute; height: 19px; width: 372px">
                <asp:Label ID="lbl_mensagem" runat="server" Font-Bold="True" 
                    Font-Names="Trebuchet MS" ForeColor="Red" 
                    Text="Não há registros com o número informado!" Visible="False" 
                    Enabled="False"></asp:Label>
            </asp:Panel>
        <p>
            <asp:GridView ID="GridView1" runat="server" AllowSorting="True" 
                AutoGenerateColumns="False" BorderColor="#DEDFDE" BorderWidth="1px" 
                CellPadding="2" DataKeyNames="id" DataSourceID="SqlDataSource1" 
                ForeColor="Black" GridLines="Vertical" Height="1px" 
                HorizontalAlign="Left" ShowFooter="True" style="z-index: 1; 
        left: 165px; top: 272px; position: fixed; height: 1px; width: 595px" 
                AllowPaging="True" RowHeaderColumn="nome" ToolTip="Editar Usuário" 
                onselectedindexchanged="GridView1_SelectedIndexChanged">
                <PagerSettings Mode="NextPreviousFirstLast" PageButtonCount="3" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <EmptyDataRowStyle HorizontalAlign="Center" Width="3px" />
                <Columns>
                    <asp:CommandField ButtonType="Image" HeaderText="Editar" 
                        SelectImageUrl="~/imagens/fatia/formulario/editar.png" SelectText="" 
                        ShowSelectButton="True">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:CommandField>
                    <asp:BoundField DataField="numero" HeaderText="Número" 
                        SortExpression="numero" />
                </Columns>
                <FooterStyle BackColor="#DADADA" Font-Bold="True" Font-Size="4pt" 
                    ForeColor="White" Height="1px" Wrap="False" />
                <PagerStyle BackColor="#284775" ForeColor="White" Height="1px" 
                    HorizontalAlign="Center" Wrap="False" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" 
                    HorizontalAlign="Left" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" 
                    Font-Names="Trebuchet MS" />
                <EditRowStyle BackColor="#999999" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            </asp:GridView>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:SIGOTConnectionString %>" 
                SelectCommand="SELECT * FROM [viatura] WHERE ([numero] &gt;= @numero)">
                <SelectParameters>
                    <asp:ControlParameter ControlID="filtro" DefaultValue="0" Name="numero" 
                        PropertyName="Text" Type="Int32" />
                </SelectParameters>
            </asp:SqlDataSource>
    </p>
    <p>
        &nbsp;</p>
    <asp:Panel ID="Panel6" runat="server" 
        style="z-index: 1; left: 0px; top: 66px; position: absolute; height: 19px; width: 955px">
        <asp:Label ID="Label4" runat="server" Text="Pesquisa:" Font-Bold="True" 
                Font-Names="Trebuchet MS" Font-Size="10pt" ForeColor="#000099"></asp:Label>
    </asp:Panel>
    <p>
        <asp:Image ID="Image12" runat="server" 
            ImageUrl="~/imagens/fatia/masterPage/linha_horizontal.png" 
            
            style="z-index: 1; left: 5px; top: 59px; position: absolute; height: 3px; width: 946px;" />
    </p>
    <p>
    <asp:TextBox ID="filtro" runat="server" 
        
        
        
        style="z-index: 1; left: 217px; top: 235px; position: fixed; width: 252px; height: 19px;" 
        ontextchanged="filtro_TextChanged" ></asp:TextBox>
    </p>
            <asp:Panel ID="Panel7" runat="server" 
                
                
                
        style="z-index: 1; left: 27px; top: 87px; position: absolute; height: 19px; width: 37px">
                <asp:Label ID="Label6" runat="server" Font-Bold="False" 
                    Font-Names="Trebuchet MS" Font-Size="9pt" ForeColor="#000099" 
                    Text="Número:"></asp:Label>
            </asp:Panel>
        <p>
    </p>
</asp:Content>
<asp:Content ID="Content4" runat="server" 
    contentplaceholderid="ContentPlaceHolder3">

</asp:Content>


